home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / tools / czesc_3 / multiuser / src / library / libheader.c < prev    next >
C/C++ Source or Header  |  1995-10-26  |  4KB  |  120 lines

  1. /************************************************************
  2. * MultiUser - MultiUser Task/File Support System                *
  3. * ---------------------------------------------------------    *
  4. * Library Header                                                            *
  5. * ---------------------------------------------------------    *
  6. * © Copyright 1993-1994 Geert Uytterhoeven                        *
  7. * All Rights Reserved.                                                    *
  8. ************************************************************/
  9.  
  10.  
  11. #include <exec/resident.h>
  12. #include <exec/semaphores.h>
  13. #include <proto/exec.h>
  14.  
  15. #include "multiuser.library_rev.h"
  16. #include "Config.h"
  17. #include "Locale.h"
  18. #include "LibHeader.h"
  19. #include "StdLibFunc.h"
  20. #include "Log.h"
  21. #include "Task.h"
  22. #include "Passwd.h"
  23. #include "UserInfo.h"
  24. #include "Protection.h"
  25. #include "Misc.h"
  26. #include "GroupInfo.h"
  27. #include "Monitor.h"
  28.  
  29.  
  30.     /*
  31.      *        Prohibit accidential execution
  32.      */
  33.  
  34. LONG StartUp(void)
  35. {
  36.     return(-1);
  37. }
  38.  
  39.  
  40.     /*
  41.      *        Version/Revision Identifiers
  42.      */
  43.  
  44. char MultiUserName[] = "multiuser.library";
  45. char MultiUserIDString[] = VSTRING;
  46. UWORD MultiUserVersion = VERSION;
  47. UWORD MultiUserRevision = REVISION;
  48.  
  49.  
  50.     /*
  51.      *        Vectors for MakeLibrary()
  52.      */
  53.  
  54. static APTR Vectors[] = {
  55.     muOpen,                         /* Standard Library Function */
  56.     muClose,                            /* Standard Library Function */
  57.     muExpunge,                        /* Standard Library Function */
  58.     muExtFunc,                        /* Standard Library Function */
  59.     muLogoutA,                        /* Public Library Function */
  60.     muLoginA,                        /* Public Library Function */
  61.     muGetTaskOwner,             /* Public Library Function */
  62.     muPasswd,                        /* Public Library Function */
  63.     muAllocUserInfo,                /* Public Library Function */
  64.     muFreeUserInfo,             /* Public Library Function */
  65.     muGetUserInfo,                    /* Public Library Function */
  66.     muOBSOLETE,                        /* Obsolete Library Function */
  67.     muSetDefProtectionA,            /* Public Library Function */
  68.     muGetDefProtection,            /* Public Library Function */
  69.     muSetProtection,                /* Public Library Function */
  70.     muLimitDOSSetProtection,    /* Public Library Function */
  71.     muCheckPasswd,                    /* Public Library Function */
  72.     muFSRendezVous,             /* Private Library Function */
  73.     muGetPasswdDirLock,            /* Public Library Function */
  74.     muGetConfigDirLock,            /* Public Library Function */
  75.     muGetTaskExtOwner,            /* Public Library Function */
  76.     muFreeExtOwner,             /* Public Library Function */
  77.     muGetRelationshipA,            /* Public Library Function */
  78.     muUserInfo2ExtOwner,            /* Public Library Function */
  79.     muAllocGroupInfo,                /* Public Library Function */
  80.     muFreeGroupInfo,                /* Public Library Function */
  81.     muGetGroupInfo,             /* Public Library Function */
  82.     muAddMonitor,                    /* Public Library Function */
  83.     muRemMonitor,                    /* Public Library Function */
  84.     muKill,                         /* Public Library Function */
  85.     muFreeze,                        /* Public Library Function */
  86.     muUnfreeze,                        /* Public Library Function */
  87.     (APTR)-1
  88. };
  89.  
  90.  
  91.     /*
  92.      *        Data for MakeLibrary()
  93.      */
  94.  
  95. static ULONG MakeLibStuff[] = {
  96.     sizeof(struct muBase),
  97.     (ULONG)Vectors,
  98.     0,
  99.     (ULONG)muInit
  100. };
  101.  
  102.  
  103.     /*
  104.      *        Resident structure for library initialisation
  105.      */
  106.  
  107. static struct Resident Resident = {
  108.     RTC_MATCHWORD,                                /* word to match on (ILLEGAL) */
  109.     &Resident,                                    /* pointer to the above */
  110.     &Resident+sizeof(struct Resident),
  111.                                                     /* address to continue scan */
  112.     RTF_AUTOINIT,                                /* various tag flags */
  113.     VERSION,                                        /* release version number */
  114.     NT_LIBRARY,                                    /* type of module (NT_XXXXXX) */
  115.     0,                                                /* initialization priority */
  116.     MultiUserName,                                /* pointer to node name */
  117.     MultiUserIDString,                        /* pointer to identification string */
  118.     MakeLibStuff                                /* pointer to init code */
  119. };
  120.